﻿using FSG.MeshAnimator.Snapshot;
using Gj;

public class CustomAnimator : SnapshotMeshAnimator
{
    private string progressAnim;

    private void Awake()
    {
        if (eventReciever == null) eventReciever = gameObject;
    }

    private void Next(string animName)
    {
        Crossfade(animName);
    }

    private void Continue(string animName)
    {
        Crossfade(StringTools.IsEmpty(progressAnim) ? animName : progressAnim);
    }

    private void Progress(string animName)
    {
        progressAnim = animName;
    }
}